﻿using INTEX.DataBase;
using ReflectionStudio.Components.UserControls;
using ReflectionStudio.Core.Events;
using ReflectionStudio.Core.Helpers;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OracleClient;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Globalization;
using System.IO;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for SETUPABON.xaml
    /// </summary>
    public partial class ITXPRN : DocumentBase
    {

        ITXPRNData vm; 
        public ITXPRN()
        {
            InitializeComponent();
            vm = new ITXPRNData();
            this.DataContext = vm;
            this.Name = "标签格式";
        }
        ~ITXPRN()
        {
            string filestemp = @"C:\IntexReport\Temp";
            string[] files = System.IO.Directory.GetFiles(filestemp);
            foreach (string file in files)
            {
                string ShortName = file.Substring(file.LastIndexOf("\\") + 1);
                if (ShortName.StartsWith("PWB"))
                    System.IO.File.Delete(file);
            }
        }
        public   void Window_Loaded(object sender, RoutedEventArgs e)
        { 
            try
            {
                
                
                IsLoaded = true;
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        }

        private void ConvertCommand(object sender, RoutedEventArgs e)
        {
            cPRN.CHGKDF(cKD09.dwKDF);
        }  
    }
}
